package cn.tedu.submarine;

import javax.swing.*;

public class Missile extends SeaObject{
    public Missile(int x,int y){
        super(31,9,x,y,2);
    }

    @Override
    public void move() {
        y+=speed;
    }

    @Override
    public ImageIcon getImage() {
        return Images.missile;
    }

    @Override
    public boolean isOutOfBounds() {
        return this.y>155;
    }

}
